<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>同咨科技-商户后台</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="../../static/css/weadmin.css">
    <link href="../../lib/layui/css/layui.css" rel="stylesheet">

    <script type="text/javascript" src="../../lib/layui/layui.js" charset="utf-8"></script>
    <script type="module" src="../components/use-body.js"></script>


    <link href="../../static/css/uselay.css" rel="stylesheet">
</head>

<body>
    <button type="button" class="layui-btn layui-btn-primary" lay-on="success">成功</button>

    <div id="success" class="dialog dialog-msg" style="display: none;">
        <div class="dialog-main">
            <div class="layui-font-18">
                <i class="iconfont use-chenggong" style="font-size: 34px; color: #52C41A;"></i>
                <span>创建成功！</span>
            </div>
            <div class="layui-font-14 layui-font-gray">
                信息提示描述文字
            </div>
        </div>
        <div class="dialog-footer">
            <!-- 主体 -->
            <div class="cent">
              <button type="button" class="layui-btn btn-text">取消</button>
              <button type="button" class="layui-btn layui-btn-radius">确定</button>
            </div>
          </div>
    </div>
</body>
<script>
    layui.use(function () {
        var $ = layui.$;
        var layer = layui.layer;
        var util = layui.util;
        // 批量事件
        util.on('lay-on', {
            'success': function () {
                layer.open({
                type: 1,
                shade: false, // 不显示遮罩
                content: $('#success'), // 捕获的元素
                title: false,
                closeBtn: false,
                });
            }
        })
    })
</script>

</html>